package xyz.csmcool.imchat.feignclient;

import org.springframework.stereotype.Component;
import xyz.csmcool.imutil.dto.UserDto;
import xyz.csmcool.imutil.utils.ResultTool;
import xyz.csmcool.imutil.webVo.ResultCode;
import xyz.csmcool.imutil.webVo.ResultVo;

import java.util.List;

/**
 * @author 什锦
 * @Package xyz.csmcool.imchat.feignclient
 * @since 2022/8/14 22:33
 */
@Component
public class UserFileDefradeFeignClient implements UserClient{

    @Override
    public ResultVo<UserDto> getUserInfo(String uid) {
        return ResultTool.fail(ResultCode.CUSTOM_FAIL.setMessage("获取用户信息失败"));
    }

    /**
     * 获取房间用户
     *
     * @param ids
     * @return
     */
    @Override
    public ResultVo<List<UserDto>> getRoomUserInfo(List<Integer> ids) {
        return ResultTool.fail(ResultCode.CUSTOM_FAIL.setMessage("获取用户信息失败"));
    }
}
